package com.wandian.core.baseView
{
	import flash.display.Stage;
	/**
	 * 初始化舞台，对游戏全局控制
	 * @author long
	 */
	public class StageBase
	{

		private static var _instance:StageBase;
		
		/**
		 * 
		 * @return 
		 */
		public static function get instance():StageBase
		{
			return _instance||= new StageBase();
		}
		
		
		/**
		 * 
		 * @default 
		 */
		public  var stageHeight:int
		/**
		 * 
		 * @default 
		 */
		public  var stageWidth:int
		private var _stage:Stage;
	
			
		/**
		 * 
		 * @param $stage
		 */
		public  function start($stage:Stage):void
		{
			if(_stage!= null)return;
			_stage = $stage;
			stageWidth=$stage.stageWidth;
			stageHeight=$stage.stageHeight;
		}
	}
}